using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WMSSystem.Domain.Workflow
{
    /// <summary>
    /// WorkflowCore执行错误表
    /// </summary>
    public class WorkflowExecutionErrors
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Description("主键ID")]
        [MaxLength(64)]
        [Key]
        public string Id { get; set; }

        /// <summary>
        /// 工作流实例ID
        /// </summary>
        [Description("工作流实例ID")]
        [MaxLength(64)]
        public string WorkflowInstanceId { get; set; }

        /// <summary>
        /// 执行指针ID
        /// </summary>
        [Description("执行指针ID")]
        [MaxLength(64)]
        public string ExecutionPointerId { get; set; }

        /// <summary>
        /// 错误时间
        /// </summary>
        [Description("错误时间")]
        public long ErrorTime { get; set; }

        /// <summary>
        /// 错误消息
        /// </summary>
        [Description("错误消息")]
        public string? Message { get; set; }
    }
} 